package cn.gyxy.service.impl;

import cn.gyxy.mapper.RizhiMapper;
import cn.gyxy.pojo.Rizhi;
import cn.gyxy.service.RizhiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RizhiServiceimpl implements RizhiService {

    @Autowired
    private RizhiMapper rizhiMapper;
    @Override
    public void insertRizhi(Rizhi rizhi) {
//        System.out.println("-------------------------------5");
     rizhiMapper.insertRizhi(rizhi);
    }

    @Override
    public List<Rizhi> selectRizhi() {
        return rizhiMapper.selectRizhi();
    }
}
